package com.cskaoyan.service;

import com.cskaoyan.bean.MarketOrder;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.data.ResRefundData;
import com.cskaoyan.bean.data.ResShipData;
import com.cskaoyan.bean.data.RespOrderDetail;

import java.util.Date;
import java.util.List;

public interface OrderService {
    CommonData<MarketOrder> list(
            Integer userId, String orderSn,
            Date start, Date end, List<Short> orderStatusArray,
            Integer page, Integer limit, String sort, String order);

    RespOrderDetail detail(Integer id);

    boolean refund(ResRefundData resRefundData);

    void ship(ResShipData resShipData);

    void delete(Integer orderId);

    Short getStatus(Integer orderId);
}
